package user8086.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import user8086.entity.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import user8086.entity.param.UserLoginParam;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ttxxi
 * @since 2022-05-31
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where username = #{param.username} and password = #{param.password}")
    User selectByUsernameAndPassword(@Param("param") UserLoginParam param);

}
